package com.ce.pms.house.dao;

import java.util.List;

import com.ce.pms.base.dao.IPmsBaseDao;
import com.ce.pms.house.model.ReasonDefDomain;

public interface IReasonDefDao extends IPmsBaseDao<ReasonDefDomain>{
	/**
	 *判断数据库中是否已存在与给定参数有相同名称的ReasonDefDomain
	 *@param reason
	 *@return
	 * @author Adama Yue
	 * @CreateDate:下午01:51:55
	 */
	public boolean nameAlreadyExist(ReasonDefDomain reason);
	/**
	 * 判断是否已被引用,这里是指被GoOutDomain引用
	 *@param reason
	 *@return
	 * @author Adama Yue
	 * @CreateDate:下午02:28:47
	 */
	public boolean isUsed(ReasonDefDomain reason);
	/**
	 * 方法描述: 根据异常类型查询相应异常集合
	 * @author 胡煦
	 * Create on:2008-9-4
	 * @param reasonDefType
	 * @return List<ReasonDefDomain>
	 * Edit author:
	 * Edit on:
	 * 修改原因：
	 */
	public List<ReasonDefDomain> getReasonDefDoList(String reasonDefType);
}